<?php
    include_once('staff.php');
    if(isset($_POST['login']) && isset($_POST['pass'])) {
        if (check_user($_POST['login'],$_POST['pass'])) {
            session_start();
            $_SESSION['login'] = $_POST['login'];
        }
    }
    header('Location:index.php');
?>